<template>
  <div>
    <h2 v-bgColor="'blue'">我是Count组件</h2>
    <h1>price:{{price|toFixed|add$}}</h1>
    <h1>子组件接收到父组件的值：{{count}}</h1>
  </div>
</template>

<script>
export default {
  name: "Count",
  props:['count'],
  data(){
    return{
      price:23.44556,
    }
  },
  beforeCreate() {
    console.log('Count---beforeCreate')
  },
  created() {
    console.log('Count---created')
  },
  beforeMount() {
    console.log('Count---beforeMount')
  },
  mounted() {
    console.log('Count---mounted')
  },
  beforeUpdate() {
    console.log('Count---beforeUpdate')
  },
  updated() {
    console.log('Count---updated')
  },
  beforeDestroy() {
    console.log('Count---beforeDestroy')
  },
  destroyed() {
    console.log('Count---destroyed')
  }
}
</script>

<style scoped>

</style>